package com.gitee.wsl.ext.list

fun <E> MutableList<E>.trimToSize(newSize: Int) {
    if(newSize < size)
       subList(newSize, size).clear()
}